import React, {Component} from 'react';
import MainBanner from "./MainBanner";
import MainProduct from "./MainProduct";

class Main extends Component {
    constructor() {
        console.log()
        super();
        console.log("App constructor");
        this.state = {
            message: "Hello App",
            data: undefined
        }
    }

    render() {
        const {data} = this.state;
        return (
            <div>
                <h2>Main</h2>
                <MainBanner data={data}/>
                <MainProduct/>
            </div>
        );
    }
}

export default Main;